package basic.arch.component.lock;

public class LockStatistics {

    //本地锁已经等待的时间
    private long localLockTime ;
    //分布式锁已经等待的时间
    private long disLockAlreadyWaitTime;
    //业务执行时间
    private long businessTime;
    //本地锁所有时间=本地锁时间+分布式等待锁时间+获取分布式锁的时间+业务处理时间
    private long sumTime;
    //获取分布式锁的调用时间
    private long distributionAccquireLockTime;
    
    public long getLocalLockTime() {
        return localLockTime;
    }
    public void setLocalLockTime(long localLockTime) {
        this.localLockTime = localLockTime;
    }
    public long getDisLockAlreadyWaitTime() {
        return disLockAlreadyWaitTime;
    }
    public void setDisLockAlreadyWaitTime(long disLockTime) {
        this.disLockAlreadyWaitTime = disLockTime;
    }
    public long getBusinessTime() {
        return businessTime;
    }
    public void setBusinessTime(long businessTime) {
        this.businessTime = businessTime;
    }
   
    public long getSumTime() {
        return sumTime;
    }
    public void setSumTime(long sumTime) {
        this.sumTime = sumTime;
    }
    public long getDistributionAccquireLockTime() {
        return distributionAccquireLockTime;
    }
    public void setDistributionAccquireLockTime(long distributionAccquireLockTime) {
        this.distributionAccquireLockTime = distributionAccquireLockTime;
    }
    @Override
    public String toString() {
        return "LockStatistics [localLockTime=" + localLockTime + ", disLockAlreadyWaitTime=" + disLockAlreadyWaitTime + ", businessTime=" + businessTime + ", sumTime=" + sumTime
                + ", distributionAccquireLockTime=" + distributionAccquireLockTime + "]";
    }
  
    
    
}
